import request from '@/utils/request'

export function getCardList(params) {
  console.log(params)
  return request({
    url: '/parking/card/list',
    method: 'get',
    params
  })
}

export function addCard(data) {
  return request({
    url: '/parking/card',
    method: 'post',
    data
  })
}
 
export function deleteCard(ids) {
  return request({
    url: `/parking/card/${ids}`,
    method: 'delete'
  })
}

export function getEditCard(id) {
  return request({
    url: `/parking/card/detail/${id}`,
    method: 'get'
  })
}

export function editCard(data) {
  return request({
    url: `/parking/card/edit`,
    method: 'put',
    data
  })
}

export function SelectDeleteCard(idList) {
  return request({
    url: `/parking/card/${idList.join(',')}`,
    method: 'delete'
  })
}

